home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / Libraries / Apache 1.0 / src / Makefile < prev    next >
Makefile  |  1995-12-04  |  4KB  |  129 lines

  1. # Makefile for the Apache httpd. 
  2.  
  3. # For normal machines with ANSI compilers
  4. # CC= cc
  5. # For Suns or other non-ANSI platforms. Please make sure your gcc is
  6. # 2.0 or later, as 1.40 seems to create bad code for the Sun 4.
  7. CC= gcc -Wall
  8.  
  9. # CFLAGS, compile flags.
  10.  
  11. # If you want no reverse hostname resolution, use -DMINIMAL_DNS
  12. # If you want to have more secure hostname resolution at the cost of some 
  13. # performance, use -DMAXIMUM_DNS
  14.  
  15. #CFLAGS= -O2 
  16. CFLAGS= -g 
  17.  
  18. # Modules precompiled with the server.  Note that these must also be
  19. # in the list in modules.c in order to be active.
  20.  
  21. MODULES = mod_mime.o mod_access.o mod_alias.o mod_cgi.o mod_include.o \
  22.     mod_dir.o mod_auth.o mod_auth_dbm.o mod_negotiation.o mod_userdir.o \
  23.     mod_log_common.o mod_asis.o
  24.  
  25. # Place here any extra libraries you may need to link to. 
  26. # If you want DBM auth, -lndbm is commonly required.
  27. EXTRA_LIBS=
  28.  
  29. # AUX_CFLAGS are system-specific control flags.
  30. # NOTE: IF YOU DO NOT CHOOSE ONE OF THESE, EDIT httpd.h AND CHOOSE
  31. # SETTINGS FOR THE SYSTEM FLAGS. IF YOU DON'T, BAD THINGS WILL HAPPEN.
  32.  
  33. # For SunOS 4
  34. AUX_CFLAGS= -DSUNOS4
  35. # For Solaris 2.
  36. # AUX_CFLAGS= -DSOLARIS2 -DFCNTL_SERIALIZED_ACCEPT
  37. # EXTRA_LIBS= -lsocket -lnsl
  38. # For SGI IRIX. Use the EXTRA_LIBS line if you're using NIS and want
  39. # user-supported directories
  40. #AUX_CFLAGS= -DIRIX -DFCNTL_SERIALIZED_ACCEPT
  41. #EXTRA_LIBS= -lsun
  42. # For HP-UX
  43. #AUX_CFLAGS= -DHPUX
  44. # For AIX
  45. #AUX_CFLAGS= -DAIX -U__STR__
  46. # For Ultrix
  47. #AUX_CFLAGS= -DULTRIX
  48. # For DEC OSF/1
  49. #AUX_CFLAGS= -DOSF1
  50. # For NeXT
  51. #AUX_CFLAGS= -DNEXT
  52. # For Sequent
  53. #AUX_CFLAGS= -DSEQUENT
  54. # For Linux -m486 ONLY IF YOU HAVE 486 BINARY SUPPORT IN KERNEL
  55. #AUX_CFLAGS= -DLINUX -DFCNTL_SERIALIZED_ACCEPT
  56. # For A/UX
  57. #AUX_CFLAGS= -DAUX
  58. #EXTRA_LIBS= -lbsd -lposix -s
  59. # For SCO ODT
  60. # libcrypt_i available from sosco.sco.com, files /SLS/lng225b.Z and
  61. # /SLS/lng225b.ltr.Z
  62. #AUX_CFLAGS= -DSCO
  63. #EXTRA_LIBS= -lPW -lsocket -lmalloc -lcrypt_i
  64. # For SVR4
  65. #AUX_CFLAGS= -DSVR4
  66. #EXTRA_LIBS= -lsocket -lnsl -lc
  67. # For Amdahl UTS 2.1
  68. # -Xa enables ANSI mode, -eft is expanded types
  69. #AUX_CFLAGS= -Xa -eft -DUTS21
  70. #EXTRA_LIBS= -lsocket -lbsd -la
  71. # For HP/Apollo Domain/OS
  72. #AUX_CFLAGS= -DAPOLLO
  73. # For NetBSD/FreeBSD/BSDI 2.x
  74. # -m486 only if you are running on Intel 486/586
  75. #AUX_CFLAGS= -m486
  76. # BSDI doesn't need -lcrypt
  77. #EXTRA_LIBS= -lcrypt
  78.  
  79. # Place here any flags you may need upon linking, such as a flag to
  80. # prevent dynamic linking (if desired)
  81. LFLAGS= 
  82.  
  83. # You shouldn't have to edit anything else.
  84.  
  85. OBJS= alloc.o http_main.o http_core.o http_config.o http_request.o \
  86.   http_log.o http_protocol.o rfc931.o util.o util_script.o modules.o $(MODULES)
  87.  
  88. .c.o:
  89.     $(CC) -c $(CFLAGS) $(AUX_CFLAGS) $<
  90.  
  91. all: httpd
  92.  
  93. httpd: $(OBJS)
  94.     $(CC) $(LFLAGS) -o httpd $(OBJS) $(EXTRA_LIBS)
  95.  
  96. clean:
  97.     rm -f httpd $(OBJS) *pure*
  98.  
  99. #Dependencies
  100. #Core code
  101. $(OBJS): Makefile httpd.h alloc.h conf.h
  102.  
  103. http_config.o http_core.o http_main.o util.o: http_conf_globals.h
  104. http_config.o http_core.o http_main.o: http_config.h http_log.h
  105. http_log.o http_protocol.o http_request.o modules.o: http_config.h
  106. http_config.o http_core.o http_protocol.o http_request.o: http_core.h
  107. http_protocol.o http_request.o util_script.o: http_log.h
  108. http_core.o http_main.o http_protocol.o http_request.o: http_main.h
  109. http_core.o http_main.o http_protocol.o http_request.o: http_protocol.h
  110. http_config.o http_main.o http_request.o: http_request.h
  111. http_main.o: scoreboard.h
  112.  
  113. #Modules
  114. $(MODULES): http_config.h
  115. mod_dld.o: http_conf_globals.h
  116. mod_ai_backcompat.o mod_auth.o mod_auth_dbm.o mod_cgi.o mod_dir.o: http_core.h
  117. mod_imap.o mod_include.o mod_negotiation.o: http_core.h
  118. mod_asis.o mod_auth.o mod_auth_dbm.o mod_cgi.o mod_dir.o: http_core.h
  119. mod_imap.o mod_include.o mod_negotiation.o: http_log.h
  120. mod_asis.o mod_cgi.o mod_dir.o mod_imap.o mod_include.o: http_main.h
  121. mod_asis.o mod_auth.o mod_auth_dbm.o mod_cgi.o mod_dir.o: http_protocol.h
  122. mod_imap.o mod_include.o: http_protocol.h
  123. mod_cgi.o mod_dir.o mod_imap.o mod_include.o mod_negotiation.o: http_request.h
  124. mod_asis.o mod_cgi.o mod_dir.o mod_imap.o mod_include.o: util_script.h
  125.  
  126. #Utils
  127. util.o: http_conf_globals.h
  128. util_script.o: http_core.h http_main.h http_protocol.h util_script.h
  129.